package com.kiliter.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
* Description:
* @author zhangjl
* @date 2021/8/16 13:25
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "Employee")
public class Employee {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Integer id;

    @TableField(value = "`name`")
    private String name;

    @TableField(value = "salary")
    private BigDecimal salary;

    @TableField(value = "managerId")
    private Integer managerid;
}